<?php
	require_once("./bm_header.php");
	$cache_time=10;
	$OJ_CACHE_SHARE=false;
	require_once('./include/cache_start.php');
	if (!isset($_SESSION['user_id']))
	{
		require_once("bm_footer.php");
		echo "<script language='javascript'>\n";
		echo "alert('您还没有登录，无法查看信息修改页，将返回上一个页面');\n";
		echo "history.go(-1);\n";
		echo "</script>";
		$view_errors= "<a href=./loginpage.php>Please LogIn First!</a>";
		require("./temp/error.php");
		exit(0);
	}

$sql="SELECT `user_name`,`user_email`,`user_phone`,`user_school`,`user_order0`,`user_order1`,`user_active0`,`user_active1` FROM `cr_user` WHERE `user_id`='".$_SESSION['user_id']."'";
$result=mysql_query($sql);
$row=mysql_fetch_object($result);
$user_order0 = $row->user_order0;
$user_order1 = $row->user_order1;
$user_active0 = $row->user_active0;
$user_active1 = $row->user_active1;
$user_school = htmlspecialchars($row->user_school);
$user_email = htmlspecialchars($row->user_email);
$user_phone = htmlspecialchars($row->user_phone);
$user_name = htmlspecialchars($row->user_name);
mysql_free_result($result);

require_once("template/".$BM_TEMPLATE."/modifypage.php");
require_once("bm_footer.php");
if(file_exists('./include/cache_end.php'))
	require_once('./include/cache_end.php');
?>

